package com.xiang.sql.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 单据 数据实体
 * 
 * @author mac-xiang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`order_stock`", autoResultMap = true)
@ApiModel(value = "单据 对象", description = "单据")
public class OrderStock implements Serializable {

  private static final long serialVersionUID = 1L;
  /** 主键ID */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  public String id;

  /** 红冲ID */
  @TableField(value = "`redress`", fill = FieldFill.INSERT)
  public String redress;

  /** 创建时间 */
  @TableField(value = "`create_time`", fill = FieldFill.INSERT)
  public Long createTime;

  /** 发货时间 */
  @TableField(value = "`send_time`")
  public Long sendTime;

  /** 收货时间 */
  @TableField(value = "`recv_time`")
  public Long recvTime;

  /** 创建用户 */
  @TableField(value = "`create`", fill = FieldFill.INSERT)
  public String create;

  /** 名称 */
  @TableField(value = "`name`", fill = FieldFill.INSERT)
  public String name;

  /** 类型 */
  @TableField(value = "`type`", fill = FieldFill.INSERT)
  public String type;

  /** 价格(单位:分) */
  @TableField(value = "`money`", fill = FieldFill.INSERT)
  public Integer money;

  /** 说明 */
  @TableField(value = "`des`", fill = FieldFill.INSERT)
  public String des;

  /** 入库商户 */
  @TableField(value = "`in_gid`", fill = FieldFill.INSERT)
  public String inGid;

  /** 出库出库 */
  @TableField(value = "`out_gid`", fill = FieldFill.INSERT)
  public String outGid;

  /** 详细内容 */
  @TableField(exist = false)
  public List<StockLog> content;

  /** 入库商家 */
  @TableField(exist = false)
  public String inGidName;
  /** 出库商家 */
  @TableField(exist = false)
  public String outGidName;
  /** 创建人 */
  @TableField(exist = false)
  public String createName;

  public OrderStock() {
  }

}